import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		position: [], // 全局位置管理,
		showBack: false
	},
	getters: {},
	mutations: {
		UPDATE_POSITION(state, data) {
			state.position = data
			state.showBack = false
		},
		SHOW_SHOWBACK (state, data) {
			state.showBack = true
		}
	},
})
